package com.cy.cuiyang_admin.util;

/**
 * @Author: cuiyang
 * @Date: 2018/10/20 23:03
 * @Description:返回值
 */
public enum ResultCodeEnum {
    SUCCESS( 1, "操作成功!"),
    FAIL( -1, "操作失败!");

    private int code;
    private String message;

    ResultCodeEnum( int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
